import fs from 'fs';

function rename(dir) {
  fs.readdir(dir, function (err, files) {
    files.forEach(function (filename) {
      const filePath = `${dir}/${filename}`
      if (fs.lstatSync(filePath).isFile()) {
        fs.renameSync(filePath, filePath.replace('_fill', ''))
      }
    })
  })
}

rename('../src/svgs/filled/f7')